import { marked } from 'marked';

// 格式化文本函数
export const formatText = (text: string): any => {
	if (!text) {
		return '';
	}
	console.log('text', text);
	const correctedText = text;
	return marked(correctedText, { breaks: true });
};
